home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / edje / data / template / macros / mymacro.edc
Text File  |  2006-01-09  |  1KB  |  30 lines

  1. #define GENERIC_ICON_MAPPING(title, iconfile) \
  2.   group { name, title; min, 32 32; max, 256 256; \
  3.       parts { \
  4.       part { \
  5.       name, "image"; type, IMAGE; mouse_events, 1; repeat_events, 1; \
  6.       description { state, "default" 0.0; align, 0.5 0.5; \
  7.       min, 32 32; max, 256 256; color, 255 255 255 255; \
  8.       rel1 { relative, 0.0 0.0; offset, 0 0; } \
  9.       rel2 { relative, 1.0 1.0; offset, 0 0; } \
  10.       image { normal, iconfile; } } \
  11.       description { state, "clicked" 0.0; align, 0.5 0.5; \
  12.       min, 32 32; max, 256 256; color, 255 255 255 160; \
  13.       rel1 { relative, 0.0 0.0; offset, 0 0; } \
  14.       rel2 { relative, 1.0 1.0; offset, 0 0; } \
  15.       image { normal, iconfile; } } } } \
  16.       programs { \
  17.       program { \
  18.         name, title"mouse_down"; signal, "mouse,down,*"; \
  19.         source, "image"; action, STATE_SET "clicked" 0.0; \
  20.         transition, ACCELERATE 0.2; target, "image"; in, 0.15 0.0; } \
  21.       program { \
  22.         name, title"mouse_down_kill"; signal, "mouse,up,*"; \
  23.         source, "image"; action, ACTION_STOP; \
  24.         target, title"mouse_down"; } \
  25.       program { \
  26.         name, title"mouse_up"; signal, "mouse,up,*"; \
  27.         source, "image"; action, STATE_SET "default" 0.0; \
  28.         transition, ACCELERATE 0.2; target, "image"; } } \
  29. }
  30.